<template>
  <el-dropdown v-bind="$attrs" trigger="click" @command="handleCommand">
    <div class="right-menu">
      <el-tooltip
        class="box-item"
        :content="$t('message.navBar.themeChange')"
        placement="bottom"
      >
        <SvgIcon id="guide-theme" icon="change-theme"></SvgIcon>
      </el-tooltip>
    </div>
    <template #dropdown>
      <el-dropdown-menu>
        <el-dropdown-item>{{ $t('message.guide.themeDesc') }}</el-dropdown-item>
      </el-dropdown-menu>
    </template>
  </el-dropdown>
  <div>
    <selectColor v-model:showColor="showColor"></selectColor>
  </div>
</template>
<script setup>
import { ref } from 'vue'
import SvgIcon from '@/components/SvgIcon/index.vue'
import selectColor from './components/selectColor/index.vue'
const showColor = ref(false)
const handleCommand = (command) => {
  showColor.value = true
}
</script>
